resource "huaweicloud_css_cluster" "mod_css" {
  name           = var.cluster_name
  engine_version = var.cluster_version

  ess_node_config {
    flavor          = var.cluster_flavor
    instance_number = var.instance_count
    volume {
      volume_type = var.volume_type
      size        = var.value_size
    }
  }
  availability_zone     = var.ava_zone
  vpc_id                = var.vpc_id
  subnet_id             = var.subnet_id
  security_group_id     = var.vsg_id
  enterprise_project_id = var.enterprise_project_id
}